package com.education.user.api;

import com.education.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: ly
 * @create: 2018-07-07 18:07
 **/
public interface UserApi {

    @GetMapping("query")
    User queryUserByUsernameAndPassword(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );

    @GetMapping("query1")
    User queryUserByUsernameAndPassword1(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );

    @GetMapping("query2")
    User queryUserByUsernameAndPassword2(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );


    /**
     * @param phone   唯一标识 手机号
     * @return
     */
    //TStudent judgeStudent(String phone);
}
